// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')

module.exports = {
    build: {
        index: path.resolve(__dirname, '../dist/index.html'),
        cdnHost: "//bcoin-hk.oss-cn-hongkong.aliyuncs.com/web/tradingview/charting_library/liu",
        cdnHostPath: "web/tradingview/charting_library/liu/",  
        assetsRoot: path.resolve(__dirname, '../dist'),
        // assetsSubDirectory: 'static',
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        productionSourceMap: false,
        productionGzip: false,
        productionGzipExtensions: ['js', 'css']
    },
    dev: {
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: {
            '/app/**': {
                target: 'https://test.6b.top',
                changeOrigin: true,
                logLevel: "debug",
                secure: false,
                pathRewrite: {
                  '^/': '/'
                }
            },
            '/data/**': {
                target: 'https://min-api.cryptocompare.com',
                changeOrigin: true,
                logLevel: "debug",
                secure: false,
                pathRewrite: {
                  '^/data': '/data',
                  '^/': '/',
                }
            },
        },
        cssSourceMap: false
    }
}
